import { createApp } from 'vue'
import App from '@/App'
const app = createApp(App)

//中间件-引入
import router from '@/router'
import store from '@/store'

//全局样式-引入
import ElementPlus from 'element-plus'      // 引用elemnt-UI      
import 'element-plus/dist/index.css'        // 引用elemnt-UI样式
import "@/assets/style/globalStyle.scss"    //全局样式(非全局变量)
//css全局变量用sass-loader，在vue.config.js中配置
app.use(ElementPlus, { size: 'middle' })     //加载elemnt-UI

//引入vh适配
import vhCheck from "vh-check"; //移动端浏览器100vh高度不一致
vhCheck();

app.use(store)
app.use(router)

app.mount('#app')
